)
endif
+if get_option('tests')
+ common_test_env = environment()
+ common_test_env.set('GSETTINGS_SCHEMA_DIR', meson.project_build_root() / 'data')
+ common_test_env.set('GSETTINGS_BACKEND', 'memory')
+
+ add_test_setup('default',
+ is_default: true,
+ env: common_test_env,
+ )
+endif
po_dir = join_paths(meson.current_source_dir(), 'po')
test('CSS styling support', test_theme,
workdir: meson.current_source_dir(),
- env: ['GSETTINGS_BACKEND=memory']
)
endif
configuration: dbusrunnerconf,
)
-testenv = environment()
-testenv.set('GSETTINGS_SCHEMA_DIR', join_paths(meson.project_build_root(), 'data'))
-
tests = [
'highlighter',
'insertSorted',
foreach test : tests
test(test, run_test,
args: 'unit/@0@.js'.format(test),
- env: testenv,
workdir: meson.current_source_dir())
endforeach
background_file = files(join_paths('data', 'background.png'))
-perf_testenv = testenv
+perf_testenv = environment()
perf_testenv.set('G_DEBUG', 'fatal-warnings')
perf_testenv.set('G_MESSAGES_DEBUG', 'GNOME Shell')
perf_testenv.set('GNOME_SHELL_DATADIR', data_builddir)